﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Micro.Core.Options
{
    public class HostOptions
    {
        /// <summary>
        /// 绑定的地址(默认：http://*:5000)
        /// </summary>
        public string Urls { get; set; } = "http://*:5000;https://*:5001";

        public List<string> UrlsArray => Urls.IsNull() ? new List<string>() : Urls.Split(";").ToList();

        /// <summary>
        /// 基础路径
        /// </summary>
        public string Base { get; set; }

        /// <summary>
        /// 是否开启Swagger功能
        /// </summary>
        public bool Swagger { get; set; }

        /// <summary>
        /// 是否启用代理
        /// </summary>
        public bool Proxy { get; set; }

        public string ProxyPath { get; set; }
    }
}
